From f3bebe5fecaa3bcee1f21fe528c0de85725d7715 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Wed, 25 Oct 2006 13:58:30 +0100 Subject: [PATCH] PV-on-HVM: Define system_state as 1 (SYSTEM_RUNNING) on kernels prior to 2.6.7. These kernels did not export the system_state variable to modules. Signed-off-by: Ian Campbell --- .../linux-2.6/platform-pci/platform-compat.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/unmodified_drivers/linux-2.6/platform-pci/platform-compat.c b/unmodified_drivers/linux-2.6/platform-pci/platform-compat.c index 61ae10dba1..c6fa5b81da 100644 --- a/unmodified_drivers/linux-2.6/platform-pci/platform-compat.c +++ b/unmodified_drivers/linux-2.6/platform-pci/platform-compat.c @@ -1,4 +1,11 @@ #include #include +#include + #include + +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,7) +static int system_state = 1; +EXPORT_SYMBOL(system_state); +#endif -- 2.30.2